package com.zhuss.core.datasource1.dao.ext;

import com.zhuss.core.datasource1.dao.gen.BuildingMapper;
import com.zhuss.core.datasource1.entity.Building;
import com.zhuss.bean.bo.core.building.SearchBuildingBo;
import com.zhuss.bean.vo.core.building.ListBuildingVo;
import com.zhuss.bean.vo.core.building.DetailBuildingVo;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.zhuss.core.db.dao.gen.*;

/**
 * @description: 小区楼栋数据库Dao
 * @author: zhushanshuo
 * @create: Fri May 28 23:02:35 CST 2021
 **/

@Mapper
public interface BuildingDao extends BuildingMapper {
	
	//void batchCreate();
	Long selectMaxIncr();
	
	void create(Building record);
	
	void delete(Building record);

	List<Building> listAll();

	List<Building> listById(@Param("buildingIdList") List<Long> buildingIdList);
	
	List<Building> listByName(@Param("name") String name);
	
	List<ListBuildingVo> list(SearchBuildingBo bo);
	
	Integer countList(SearchBuildingBo bo);

	DetailBuildingVo detail(@Param("buildingId") Long buildingId);

}
